<%--
 *  File:    DcPycleMainHeaderEdit.jsp
 *  @Author: DC
 *  Date:    2011/09/13
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved. 
 *
 *  This software is the confidential and proprietary information of Oval 
 *  Technologies, Inc. ("Confidential Information").  You shall not

 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>

<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>     
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>



<% //--------------------------------------  setting logger --%>
<%
  
%>
<% //--------------------------------------  variant and initialization --%>
<%
	String strModuleName = "DMS";
    String strTableName = "";
	String privilegeCode = "FP0102";
	String contextPath = request.getContextPath(); 
    HashMap userinfo = (HashMap)session.getAttribute("userinfo");
%>
<%@ include file="/inc/Security.inc" %>
<%@ include file="/inc/PageDefault.inc" %>
<%@ include file="/inc/InitEdit.inc" %>
<%@ include file="/inc/LocationDefault.inc" %>
<html>
<head>
<title>VisitProcessHeaderEdit</title>
<%
	String strIsDefault = "";
	if("Y".equals(request.getParameter("isdefault"))) {
		strIsDefault = "&isdefault=Y";
	}else if ("N".equals(request.getParameter("isdefault"))) {
		strIsDefault = "&isdefault=N";
	}else  {
		strIsDefault = null;
	}
	
	String dpcyclemainid = "";
	if (request.getParameter("dpcyclemainid") != null )
		dpcyclemainid = "&dpcyclemainid="+request.getParameter("dpcyclemainid");

	String isNew = "";
	if("Y".equals(request.getParameter("isNew"))) {
		isNew = "&isNew=Y";
	}else if ("N".equals(request.getParameter("isNew"))) {
		isNew = "&isNew=N";
	}

     String viewflag = "";
     if (request.getParameter("viewflag")!=null&&"view".equals((String)request.getParameter("viewflag"))) {
		viewflag = "&viewflag=view";
	}else{
        viewflag = "&viewflag=";
     }
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath %>/css/<%= strLanguageCode %>/main.css" type="text/css">
 <script language="JavaScript" src="<%=contextPath %>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath %>/js/FuncLib.js"></script>
<script language="JavaScript">


function page_main(action) {
  var url = "";
  if (action == "main"){
	  url = "DcPycleMainEdit.jsp?<%= OvalTools.randomURL() %><%=JspHelper.filterNull( dpcyclemainid)%><%=JspHelper.filterNull( strIsDefault)%><%=JspHelper.filterNull( isNew)%><%=JspHelper.filterNull( viewflag)%>"
  parent.down.location.href=url;
  }
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
	<form name="kform" method="post" action="<%=contextPath %>/Dispatcher">
			<%@ include file="/inc/PageLocation.inc" %>
    <input type="hidden" name="actionname">

    <input type="hidden" name="languagecode" value="<%= strLanguageCode %>">
    <input type="hidden" name="dpcyclemainid" value="<%=request.getParameter("dpcyclemainid")%>">
    
    <input type="hidden" name="orgid" value="<%=JspHelper.filterNull( userinfo.get("orgid"))%>">
    

<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td style="PADDING-BOTTOM: 0px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px" class="black_line">
            <table border=0 cellpadding=0 cellspacing=0
            width="100%">

            <tbody>
            <tr>
             <td bgcolor=#FFFFFF class=m_title>&nbsp;</td>
             </tr>
             <tr>
             <td background=<%=contextPath %>/images/<%= strLanguageCode %>/M_bg.gif  bgcolor=#FFFFFF valign="bottom">
              <table border="0" cellspacing="0" cellpadding="0">
            <tr>
            <td><img src="images/<%= strLanguageCode %>/M_bg.gif" width="1" height="20"></td>
            <td class="hand1" id="A01" valign="bottom"  width="78" background="<%=contextPath %>/images/<%= strLanguageCode %>/mark_bg.gif"  onclick='javascript:page_main("main");switchTags(this);'><div align=center><%=label.getLabelName("L_Summary")%></div></td>

           </tr>
           </table>
          </td>
        </tr>
		
      </table>
    </td>
  </tr>

</table>

  </form>
</body>
</html>


